package com.training1.core.entity;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.ibatis.type.Alias;

import com.training1.core.common.entity.DataEntity;
@Alias("contractbase")
public class ContractBaseEntity extends DataEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8825228375672075776L;
	private String customerCode;//客户ID（客户信息表的ID）;
	private BigDecimal serFee;//服务费率(使用时候需要除以100);
	private String usageq;//用途;
	private BigDecimal expAmount;//拟借款金额;
	private BigDecimal expCyc;//拟借款期数(单位是：周);
	private Date expDate;//拟借款日期;
	private Date appDate;//申请日期;
	private String status;//"合同状态（90：已结束 10：逾期中 20：执行中 30：待二审 40：待一审 50：录入中）";
	private Date firInsDate;//一审日期;
	private String firInsOperid;//一审审核员ID（用户信息表的ID）;
	private String firInsReason;//一审拒绝理由;
	private Date secInsDate;//二审日期;
	private String secInsOperid;//二审审核员ID（用户信息表的ID）;
	private String secInsReason;//二审拒绝理由;
	private BigDecimal approvalAmount;//审批金额;
	private BigDecimal approvalCyc;//审批期数;
	private Date endDate;//合同结束日期（最后一次还款日期）;
	private BigDecimal forceAmount;//强制结束收款金额;		
	private Date forceDate;//强制结束日期
	private String forceOperid;//强制结束人ID（用户信息表的ID）
	private String endMode;//合同结束方式（10：正常结束 20：强制结束）
	private BigDecimal totalAmount;//合计已回收金额（正常回收本金+利息+延迟服务费+强制结束收款金额）
	private String underCompany;//所属公司（组织信息表的ID，该客户隶属友利总部，还是分支机构）
	private String recom;//推荐人
	private String recomPhone;//推荐人手机
	private String memo;//合同备注
	private Date loanDate;//放款日期
	private String isValid;//有效状态（0：正常 1：删除）
	private Integer userId;//合同做成人id
	
	/*
	 * 查询字段
	 */
	private String userName;//用户姓名
	private Integer companyId;//所属公司id
	private String customerPhone;//联系方式
	private String appDateStr;//申请日期;
	
	/*
	 * 高级查询字段
	 */
	private String customerName;//客户姓名
	private String loanTime;//放款日期
	private String applTime;//申请日期
	private String status2;//状态
	private String approvalSum;//金额和
	private String totalSum;//回收和
	
	public String getApprovalSum() {
		return approvalSum;
	}

	public void setApprovalSum(String approvalSum) {
		this.approvalSum = approvalSum;
	}

	public String getTotalSum() {
		return totalSum;
	}

	public void setTotalSum(String totalSum) {
		this.totalSum = totalSum;
	}

	public String getStatus2() {
		status2 = status;
		return status2;
	}

	public void setStatus2(String status2) {
		this.status2 = status2;
	}

	public String getCustomerName() {
		return customerName;
	}
	
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getCompanyId() {
		return companyId;
	}
	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}
	public String getCustomerPhone() {
		return customerPhone;
	}
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	public String getAppDateStr() {
		return appDateStr;
	}
	public void setAppDateStr(String appDateStr) {
		this.appDateStr = appDateStr;
	}
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	public BigDecimal getSerFee() {
		return serFee;
	}
	public void setSerFee(BigDecimal serFee) {
		this.serFee = serFee;
	}
	
	public String getUsageq() {
		return usageq;
	}

	public void setUsageq(String usageq) {
		this.usageq = usageq;
	}

	public BigDecimal getExpAmount() {
		return expAmount;
	}
	public void setExpAmount(BigDecimal expAmount) {
		this.expAmount = expAmount;
	}
	public BigDecimal getExpCyc() {
		return expCyc;
	}
	public void setExpCyc(BigDecimal expCyc) {
		this.expCyc = expCyc;
	}
	public Date getExpDate() {
		return expDate;
	}
	public void setExpDate(Date expDate) {
		this.expDate = expDate;
	}
	public Date getAppDate() {
		return appDate;
	}
	public void setAppDate(Date appDate) {
		this.appDate = appDate;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getFirInsDate() {
		return firInsDate;
	}
	public void setFirInsDate(Date firInsDate) {
		this.firInsDate = firInsDate;
	}
	public String getFirInsOperid() {
		return firInsOperid;
	}
	public void setFirInsOperid(String firInsOperid) {
		this.firInsOperid = firInsOperid;
	}
	public String getFirInsReason() {
		return firInsReason;
	}
	public void setFirInsReason(String firInsReason) {
		this.firInsReason = firInsReason;
	}
	public Date getSecInsDate() {
		return secInsDate;
	}
	public void setSecInsDate(Date secInsDate) {
		this.secInsDate = secInsDate;
	}
	public String getSecInsOperid() {
		return secInsOperid;
	}
	public void setSecInsOperid(String secInsOperid) {
		this.secInsOperid = secInsOperid;
	}
	public String getSecInsReason() {
		return secInsReason;
	}
	public void setSecInsReason(String secInsReason) {
		this.secInsReason = secInsReason;
	}
	public BigDecimal getApprovalAmount() {
		return approvalAmount;
	}
	public void setApprovalAmount(BigDecimal approvalAmount) {
		this.approvalAmount = approvalAmount;
	}
	public BigDecimal getApprovalCyc() {
		return approvalCyc;
	}
	public void setApprovalCyc(BigDecimal approvalCyc) {
		this.approvalCyc = approvalCyc;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public BigDecimal getForceAmount() {
		return forceAmount;
	}
	public void setForceAmount(BigDecimal forceAmount) {
		this.forceAmount = forceAmount;
	}
	public Date getForceDate() {
		return forceDate;
	}
	public void setForceDate(Date forceDate) {
		this.forceDate = forceDate;
	}
	public String getForceOperid() {
		return forceOperid;
	}
	public void setForceOperid(String forceOperid) {
		this.forceOperid = forceOperid;
	}
	public String getEndMode() {
		return endMode;
	}
	public void setEndMode(String endMode) {
		this.endMode = endMode;
	}
	public BigDecimal getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}
	public String getUnderCompany() {
		return underCompany;
	}
	public void setUnderCompany(String underCompany) {
		this.underCompany = underCompany;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getIsValid() {
		return isValid;
	}
	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}

	public String getRecom() {
		return recom;
	}

	public void setRecom(String recom) {
		this.recom = recom;
	}

	public String getRecomPhone() {
		return recomPhone;
	}

	public void setRecomPhone(String recomPhone) {
		this.recomPhone = recomPhone;
	}

	public Date getLoanDate() {
		return loanDate;
	}

	public void setLoanDate(Date loanDate) {
		this.loanDate = loanDate;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getLoanTime() {
		return loanTime;
	}

	public void setLoanTime(String loanTime) {
		this.loanTime = loanTime;
	}

	public String getApplTime() {
		return applTime;
	}

	public void setApplTime(String applTime) {
		this.applTime = applTime;
	}
	
}
